﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfSnqkGasAnalysis.Model;


namespace WpfSnqkGasAnalysis.IData
{
    /// <summary>
    /// 数据接口。水露点
    /// </summary>
    /// 创建时间:2022-12-23 11:01:28。作者：王浩力
    public interface IWater_pointDAL
    {
        IResult Add(Water_point water_Point);
        IResult Edit(Water_point  water_Point);
        Water_point Get(long id);

        IResult Delete(long id);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="where"></param>
        /// <param name="p"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        /// 创建时间：2022-12-23 11:03:36。作者：王浩力
        PageModel<Water_point> Page(Water_point where, int p, int rows);

        /// <summary>
        /// 审核
        /// </summary>
        /// <param name="history"></param>   
        /// <returns></returns>
        /// 创建时间：2022-12-23 11:03:17。作者：王浩力
        IResult Check(Water_check_history history);

        /// <summary>
        /// 水露点，统计数量，审核通过的，没有被删除的
        /// </summary>
        /// <returns></returns>
        /// 创建时间：2023-1-3 09:39:48。作者：王浩力
        public int GetCount();
    }
}
